﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;
using SQLiteNetExtensions.Attributes;


namespace Dt261.jsonmodel
{


    [Table("pd_audio_result_list")]
    public class ResultDataListItem
    {
        /// <summary>
        /// 
        /// </summary>
        [PrimaryKey]
        public string id { get; set; }
        public string resultId { get; set; }
        /// <summary>
        /// 招
        /// </summary>
        public string testExpression { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string pinyin { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int isCorrect { get; set; }

        public string isCorrectName { get; set; }


        public ResultDataListItem clone()
        {
            return this.MemberwiseClone() as ResultDataListItem;
        }

    }


    [Table("pd_audio_test_result")]
    public class SpeechResultItem
{
        /// <summary>
        /// 
        /// </summary>
        [PrimaryKey]
        public string id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// 
        public string personid { get; set; }
        public int spl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ears { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int result { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime createTime { get; set; }
        /// <summary>
        /// 单音节
        /// </summary>
        public string testTableType { get; set; }
        /// <summary>
        /// 单音节练习表
        /// </summary>
        public string testTable { get; set; }
        /// <summary>
        /// 
        /// </summary>
        ///  
        [OneToMany]
        public List<ResultDataListItem> resultDataList { get; set; }
        [OneToMany]
        public List<ResultDataListItem> li { get; set; }


        public SpeechResultItem clone()
        {
            return this.MemberwiseClone() as SpeechResultItem;
        }
    }
}
